Xbasic

SQL::ConnectionAddUserGroup Method

Syntax

Result_Flag as L = AddUserGroup(GroupName as C)

Arguments

GroupNameCharacter

The name of the group to which to add the user.

Returns

Result_FlagLogical

TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).

Description

Create a new user group in the currently connected database or server.

Discussion

The AddUserGroup() method creates a new user group in the currently connected database or server.

Example

dim conn as SQL::Connection
dim connString as C
connString = "{A5API='SQLServer', Server='doc3000', Trusted_connection=yes, Database='Northwind'}"
if .not. conn.open(connString)
    ui_msg_box("Error", conn.CallResult.text)
    end
end if
if .not. conn.AddUserGroup("Techwriting")
    ui_msg_box("Error", conn.CallResult.text)
end if
conn.close()

See Also